package app

import (
	"starry_sky/internal/config"
	http_middleware "starry_sky/internal/middleware/http-middleware"
	"starry_sky/internal/server/http"
)

func startHttpServer() {
	server := http.NewServer(config.WebConfig.Port, config.WebConfig.ServerMode, config.WebConfig.UseRecovery)
	server.Engine.Use(http_middleware.OperationLog)
	server.Start()
}
